<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<!--引入easyui的样式 -->
<link rel="stylesheet"  type="text/css" href="${pageContext.request.contextPath}/themes/bootstrap/easyui.css">
<link rel="stylesheet"  type="text/css" href="${pageContext.request.contextPath}/themes/icon.css">
<!-- js文件 -->
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.easyui.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/easyui-lang-zh_CN.js"></script>
</head>
<script type="text/javascript">
$(function(){
	<!--更改底部工具栏 -->
	var pager=$("#UserList").datagrid().datagrid('getPager');
	pager.pagination({
		pageList:[20,30,50],
	});
});
</script>
<body>
 <table id="dg" title="用户列表" class="easyui-datagrid" style="width:1000px;height:500px"
            url="${pageContext.request.contextPath}/user/selectFunc.action" toolbar="#toolbar" pagination="true" rownumbers="true" fitColumns="true">
        <thead>
            <tr>
            	<th field="ck" checkbox=true></th>
                <th field="uid" width="50">用户id</th>
                <th field="uacount" width="50">账户名</th>
                <th field="upassword" width="50">密码</th>
                <th field="uname" width="50">用户名</th>
                <th field="rname" width="50">角色名</th>
            </tr>
        </thead>
         <div id="toolbar">
        		<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="addInfo()">增加</a>
        		<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="updateInfo()">修改</a>
        		<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-remove" plain="true" onclick="deleteInfo()">删除</a>
   		 </div>
   		 
   		 <div id="dlg" class="easyui-dialog" style="width:400px;height:280px;padding:10px 20px"
            closed="true" buttons="#dlg-buttons">
        <div class="ftitle" id="">用户信息</div>
        <form id="fm" method="post">
        <div class="fitem" id="ssid">
                <label>编号:</label>
                <input id="sid" name="sid" class="easyui-textbox" required="true">
            </div>
            <div class="fitem">
                <label>姓名:</label>
                <input id="sname" name="sname" class="easyui-textbox" required="true">
            </div>
            <div class="fitem">
                <label>年龄:</label>
                <input id="sage" name="sage" class="easyui-textbox" required="true">
            </div>
            <div class="fitem">
                <label>性别:</label>
                <input id="ssex" name="ssex" class="easyui-textbox" required="true">
            </div>
        </form>
    </div>
    <div id="dlg-buttons">
    	<!-- <a href="javascript:void(0)" class="easyui-linkbutton c6" iconCls="icon-ok" style="width:90px" onclick="submit()" id="submit">提交</a>
        <a href="javascript:void(0)" class="easyui-linkbutton c6" iconCls="icon-ok" onclick="save()" style="width:90px" id="save">保存</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#dlg').dialog('close')" style="width:90px">取消</a>
    	 -->
    	 <a href="javascript:void(0)" class="easyui-linkbutton c6" iconCls="icon-ok" id="submit" onclick="submit()"  style="width:90px">提交</a>
        <a href="javascript:void(0)" class="easyui-linkbutton c6" iconCls="icon-ok"  style="width:90px;" id="save" >保存</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#dlg').dialog('close')" style="width:90px">取消</a>
    
    </div>
    </table>
</body>
</html>